Skip to content

Conversation

@lorisleiva
Copy link
Member

This PR fixes a few issues with the following three visitors.

  • unwrapInstructionArgsDefinedTypesVisitor which uses:
  • unwrapDefinedTypesVisitor which uses:
  • getDefinedTypeHistogramVisitor

Namely, this PR makes it possible for identified DefinedTypeLinkNodes to be sandboxed by programs. That way, if two programs inside a RootNode provide a type node with the same name, unwrapping one will not affect the other.

@changeset-bot
Copy link

changeset-bot bot commented Nov 22, 2024

🦋 Changeset detected

Latest commit: a1377ba

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 15 packages
Name Type
@codama/visitors Minor
codama Minor
@codama/nodes-from-anchor Patch
@codama/renderers-js Patch
@codama/renderers Patch
@codama/errors Minor
@codama/node-types Minor
@codama/nodes Minor
@codama/validators Minor
@codama/visitors-core Minor
@codama/dynamic-codecs Patch
@codama/dynamic-parsers Patch
@codama/renderers-core Patch
@codama/renderers-js-umi Patch
@codama/renderers-rust Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lorisleiva lorisleiva requested a review from febo November 22, 2024 15:31
Copy link
Contributor

@febo febo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 👌

@lorisleiva lorisleiva merged commit e55bcd7 into main Nov 22, 2024
4 checks passed
@lorisleiva lorisleiva deleted the loris/test-unwrap-ix-args-visitor branch November 22, 2024 15:58
@github-actions github-actions bot mentioned this pull request Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants